<%--
 * list.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags"%>


<form:form modelAttribute="dashboard">
	<acme:textarea code="dashboard.numCustomers" path="numCustomers"
		readonly="true" />
	<acme:textarea code="dashboard.numOrders" path="numOrders"
		readonly="true" />
	<acme:textarea code="dashboard.totalAmountOfAllOrders"
		path="totalAmountOfAllOrders" readonly="true" />
	<acme:textarea code="dashboard.numAvailableItems"
		path="numAvailableItems" readonly="true" />
	<acme:textarea code="dashboard.numComments" path="numComments"
		readonly="true" />

</form:form>






<spring:message code="dashboard.buyersMoreSpent" />


<display:table pagesize="1" class="displaytag" keepStatus="true"
	name="dashboard.buyersMoreSpent" requestURI="${requestURI}"
	id="row">

	<spring:message code="customer.name" var="customerNameHeader" />
	<display:column property="name" title="${customerNameHeader}"
		sortable="false" />

	<spring:message code="customer.surname" var="customerSurnameHeader" />
	<display:column property="surname" title="${customerSurnameHeader}"
		sortable="false" />
		
	<spring:message code="customer.address" var="customerAddressHeader" />
	<display:column property="address" title="${customerAddressHeader}"
		sortable="false" />

	<spring:message code="customer.email" var="customerEmailHeader" />
	<display:column property="email" title="${customerEmailHeader}"
		sortable="false" />

</display:table>


<spring:message code="dashboard.sellersMoreEarned" />


<display:table pagesize="1" class="displaytag" keepStatus="true"
	name="dashboard.sellersMoreEarned" requestURI="${requestURI}"
	id="row">

	<spring:message code="customer.name" var="customerNameHeader" />
	<display:column property="name" title="${customerNameHeader}"
		sortable="false" />

	<spring:message code="customer.surname" var="customerSurnameHeader" />
	<display:column property="surname" title="${customerSurnameHeader}"
		sortable="false" />
		
	<spring:message code="customer.address" var="customerAddressHeader" />
	<display:column property="address" title="${customerAddressHeader}"
		sortable="false" />

	<spring:message code="customer.email" var="customerEmailHeader" />
	<display:column property="email" title="${customerEmailHeader}"
		sortable="false" />

</display:table>
